package com.ny.service.impl;

import com.ny.dao.impl.OrderDaoImpl;
import com.ny.entity.Order;
import com.ny.service.OrderService;
import java.sql.SQLException;


public class OrderServiceImpl implements OrderService {

    private OrderDaoImpl orderDao = new OrderDaoImpl();

    public OrderServiceImpl()throws SQLException, ClassNotFoundException {
     }
     @Override
    public int  addOrder(Order order) throws SQLException, ClassNotFoundException {
    	 return orderDao.addOrder(order);
    }

}